package cn.isjinhao.crws.sql.grammar;

import cn.isjinhao.crws.sql.lexical.token.Token;

/**
 * @Author ISJINHAO
 * @Date 2021/3/3 22:30
 */
public class GroupFunction extends CurdStatement {

    private Token method;

    private Token token;

    public GroupFunction(Token method, Token token) {
        this.method = method;
        this.token = token;
    }

    @Override
    public <R> R accept(CurdStatementVisitor<R> curdStatementVisitor) {
        return curdStatementVisitor.visitGroupFunction(this);
    }

    public Token getMethod() {
        return method;
    }

    public Token getToken() {
        return token;
    }
}
